package com.dayangxiaoen.pms.utils;

public class RedisConstants {
    public static final String LOGIN_CODE_KEY = "login:code:"; //登录验证码key前缀
    public static final Long LOGIN_CODE_TTL = 1L;   //登录验码TTL
    public static final String LOGIN_USER_KEY = "login:token:"; //用户token key前缀
    public static final String LOGIN_USERNAME="login:username:";    //缓存空对象前缀，用于登录时防止恶意攻击（一直用一个不存在的用户名登录攻击数据库）
    public static final Long CACHE_NULL_TTL=10L; //缓存空对象TTL
    public static final Long LOGIN_USER_TTL = 36000L; //用户登录有效期
    public static final String LOGIN_LIMIT_KEY = "login:limit:"; //限制用户登陆次数
    public static final Long LOGIN_LIMIT_TTL = 10L; //用户登录有效期

}
